package com.fairytask.ui.item.chat
{
	public class ChatItemData
	{
		private var _sender	:String	=	"";
		private var _reciever	:String	=	"";
		private var _content	:String	=	"";
		private var _channel	:int;
		private var _chatStyle	:String	=	"";
		
		private var _vip			:String	=	"";
		
		public function ChatItemData()
		{
		}

		public function clone():ChatItemData
		{
			var tmpItem:ChatItemData	=	new ChatItemData();
			tmpItem.sender		=	_sender
			tmpItem.reciever	=	_reciever
			tmpItem.channel		=	_channel
			tmpItem.chatStyle	=	_chatStyle
			tmpItem.content		=	_content
			return tmpItem;
		}
		
		public function get chatStyle():String
		{
			return _chatStyle;
		}

		public function set chatStyle(value:String):void
		{
			_chatStyle = value;
		}

		public function get channel():int
		{
			return _channel;
		}

		public function set channel(value:int):void
		{
			_channel = value;
		}

		public function get content():String
		{
			return _content;
		}

		public function set content(value:String):void
		{
			_content = value;
		}

		public function get reciever():String
		{
			return _reciever;
		}

		public function set reciever(value:String):void
		{
			_reciever = value;
		}

		public function get sender():String
		{
			return _sender;
		}
		

		public function set sender(value:String):void
		{
			_sender = value;
		}

		public function set vip(value:String):void
		{
			_vip = int(value)>9?"x":value;
		}

		public function get vip():String
		{
			if(_vip!=""&&_vip!="0")
				return ":vip"+_vip+" ";
			else
				return "";
		}


	}
}